package com.usian.controller;

import com.usian.designer.SliderImage;
import com.usian.service.SliderLamageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/app/users/slider")
public class SliderLmageController {
    @Autowired
    private SliderLamageService sliderImageService;

    @RequestMapping("/images")
    public List<SliderImage> getSliderImages() {
        return sliderImageService.getSliderImages();
    }
}
